package com.martin.dms.factories.hib;

import com.martin.dms.factories.CategoryFactory;
import com.martin.dms.model.Category;
import com.martin.dms.model.hib.CategoryHib;

/**
 * Hibernate implementation of the Category factory.
 * 
 * @author mtsvetkov
 */
public class CategoryFactoryHib implements CategoryFactory {

    /**
     * {@inheritDoc}
     */
    public Category create(String name) {
        CategoryHib category = new CategoryHib();
        category.setName(name);
        return category;
    }

}
